import App from '@/App'

// 根路由
import IndexRoot from '@/views/Index/Root'

// 前台路由
import IndexChildren from './indexChildren'

// 公用路由
import Common from './Common/root'

export default [
  {
    path: '/',
    component: App,
    children: [
      {
        path: '/',
        component: IndexRoot,
        children: IndexChildren
      }
    ]
  },
  ...Common,
  {
    path: '*',
    name: '404',
    component: () => import('@/views/Empty'),
    meta: {
      title: '404'
    }
  }
]
